package FlowGram.Application.User;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class LoginTest {

	 
	
	public static void main (String [] args) throws IOException{
		UserManager test = new UserManager();
	/*
		System.out.println("enter the inputs"); 
		Scanner read = new Scanner(System.in);
		String user = read.next(); 
		String password = read.next(); 
		
		if(test.login(user, password))
		{
			System.out.println("felicitations");
			System.out.println(test.currentUser.getWorkspace());
			System.out.println(test.currentUser.getLastLogin());
			System.out.println(test.currentUser.getLevel()); 
		}
		else
		{
			System.out.println("Je suis tres desolee"); 
	
		}
		
		path file = ...;
try {
    // Create the empty file with
    // default permissions, etc.
    Files.createFile(file);
} catch (FileAlreadyExistsException x) {
    System.err.format("file named %s" +
        " already exists%n", file);
} catch (IOException x) {
    // Some other sort of failure,
    // such as permissions.
    System.err.format("createFile error: %s%n", x);

		
*/
		
		//System.out.println(test.UserNameExists(user)); 
	
		//System.out.println(test.remove(user)); 
		
		//User addition = new User("scineus","tourjour", "2011-12-13:17-05-47", 0, "C://workspace"); 
		//System.out.println(test.SaveUser(addition)); 
		
		test.CreateUser("oscar","simulation", "/.autofs/ilab/ilab_users/scineus/UserWork"); 
		
	}
}
